import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Window 2.0
import QtQuick.Dialogs 1.0
import QtQuick.XmlListModel 2.0
import QtQuick.Controls.Styles 1.0

CheckBox {
    id: componentCheckBox

    property bool highlightCheckedText: false
    
    style: CheckBoxStyle {
        label: Label {
            color: "white"
            text: control.text
            font.bold: highlightCheckedText && control.checked
        }
        indicator: Rectangle {
            implicitWidth: 12
            implicitHeight: 12
            radius: 2
            border.color: control.activeFocus ? "darkblue" : "gray"
            border.width: 1
            Rectangle {
                visible: control.checked
                color: "#555"
                border.color: "#333"
                radius: 1
                anchors.margins: 4
                anchors.fill: parent
            }
        }
    }
}
